<h2>Register an Account</h2>
<div id="registerForm">
  <% form_for( @user, :url => { :action => 'create' }, :method => "post" ) do |u| %>
    Login:<br/>
    <%= u.text_field :login, :class=>"textInput" %><br/>
    Password:<br/>
    <%= u.password_field :password, :class=>"textInput" %><br/>
    Re-enter Password:<br/>
    <%= u.password_field :password_check, :class=>"textInput" %><br/>
    First Name:<br/>
    <%= u.text_field :first_name, :class=>"textInput" %><br/>
    Last Name:<br/>
    <%= u.text_field :last_name, :class=>"textInput" %><br/>
    Summoner Name:<br/>
    <%= u.text_field :summoner_name, :class=>"textInput" %><br/>
  <%# TODO; ADD THIS LATER!%>
    <%= u.hidden_field :user_type_id, :value => '1' %>

    <%= u.submit "Register", :class=>"registerButton" %>

  <% end %>
</div>

<div id="registerSideBar">
  <% if !flash[:fail].nil? %>
    <div id="registerErrors">
      Registration failed due to:
      <% failures = flash[:fail] %>
      <ul>
        <% failures.each do |f| %>
          <li><%= f.to_s %></li>
        <% end %>
      </ul>
    </div>
    <% flash[:fail] = nil %>
  <% end %>
  <div id="registerInfo">
    Reg Info!
  </div>
</div>